<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
</head>
<body>
       <%
           Object name =session.getAttribute("name");
           Object password =session.getAttribute("password");
       %> 
         
         
      <center>
            <h1  style="color:blue">登录</h1>
            <form action="ChatSever" method="get">
                                     用户名:<input type="text" name="name"
                  value="<%=name==null?"":name.toString() %>"><br/>
                                     密码 :<input type="text" name="password"
                  value="<%=password==null?"":password.toString() %>"><br/>
                  <input type="submit" value="登录"><input type="reset">
            </form>
      </center>
       

</body>
</html>